package com.example.webchar.webchar;

import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.junit.Test;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.io.IOException;
import java.util.ArrayList;
import java.util.LinkedList;


/**
 * 主启动类
 *
 * @program: webchars
 * @description
 * @author: 毛叶贵子
 * @create: 2021-08-28 08:30
 * 扫描sql文件
 **/
@SpringBootApplication
@MapperScan("com.example.webchar.webchar.mapper")

public class WebcharApplication {
    public static void main(String[] args) {
        SpringApplication.run(WebcharApplication.class, args);
    }


    @Test
    public void abc() throws IOException {
        Document document = Jsoup.connect("https://www.bige3.com/book/16947/1.html").userAgent("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31").get();
        System.out.println(document);

    }
}




